remove rap suffix in path