Do not remove all path for core files in pathRemover function.