Fixes handling of absolute paths