creates dir if doesnt exist and first arg is file name
made colours clearer with ####