Fix a few edge cases for raco pkg new

Also fix typos/indentation