workDir function

Get a GLocation's working directory