replaced xcwd with a little shell script (.cwd.sh)