CurrentDir for linux/osx