Fixed version scripts + several path issues when path contains a space