This patch replaces getcwd() by getwd() in the file selector.
This is necessary since getcwd() on SunOS is very complicated (does
a vfork() and gets information through a pipe) and hangs on a
wait4(). This must be some conflict of signals between the SunOS libc
and gtk.
