Fix remote debugging and add ftp helper script