Install passwd before creating user

This installs the `passwd` package earlier because it's not present on minimal installations such as the JeOS image. 

Also, it removes the duplicated package installation/update execution.