You should `chmod 755` this dir.
mktemp creates it with 700, which causes problem when using the php buildpack (this buildpack uses user nobody)