Always call `cd "$WORKDIR"` to ensure that $CWD is sane whenever possible.

svn path=/main/trunk/; revision=11530
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 2d87d40..e0b63d9 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -272,6 +272,9 @@
 	export EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} $*"
 }
 
+# Ensure that $CWD is sane whenever possible.
+cd "$WORKDIR" 2>/dev/null
+
 #if no perms are specified, dirs/files will have decent defaults
 #(not secretive, but not stupid)
 umask 022