removing the directory name