Bug fix where --packagefile is ignored due to a typo in variable name