cleanup unix filepath