create appt/tmp and app/cache prior to chown
add nokogiri to list of --use-system-libraries