Don't add '/' to empty path

Fix path corruption issue when coping to remote home directory.