Refactor build/bundle. Error when -p is not supplied.