Add a better line for determining current directory.