removes non-portable path