 
 
 	# Change backslashes to forward slashes on Windows
-	_constructRemotePath: (str) -> str.replace /\\+/g, "/"
+	_normalize: (str) -> path.normalize(str).replace /\\+/g, "/"
 
 	# Remove special chars
 	_removeSpecialChars: (str) -> str.replace /[\W]/g, ""

		if @toUpload.length
			console.log "Files that will be uploaded:".bold.blue
			for file in @toUpload
				remoteFile = @_constructRemotePath(path.normalize(@config.path.remote + file.remote))
				console.log("[ ? ]".blue, "#{file.name}".blue, ">".green, "#{remoteFile}".blue)

		prompt.start()

				return

			# Create the folder recursively in the server
			connection.mkdir @_normalize(@config.path.remote + folder), (error) =>
				unless @dirCreated[folder]
					if error
						# console.log "[ + ]".green, "Fail creating directory: #{folder}:".red
