version_gen fixed for paths with spaces