Check for working directory