making the path relative and cleaning up