Use abspath function so this will work on OSX too.