Fixed setup to detect where the current directory is