Fix some scripts when there are space in the path.