added validation if provided new version file is a file
added sudo where needed