Return correct 404
Added correct cross site header
Create jobs dir if it doesn't exist