Dont try to create files with slashes in the name

Signed-off-by: Ben Agricola <bagricola@squiz.co.uk>