Removing .dist files from str_replace