build: apply_profile: moved the 'allow telnetd login if needed', it was not called if password was already set