tries to get current directory