resolve ENV var before testing for relative/abs paths

fixed a bug where abs environment vars would not be correctly expanded before checking if they are abs in Context::resolveFileLocation()

this should fix #319