Fixes relative path bugs