check if createpath resource has already been defined for a path
Corrected escape characters
capitalised resource references and added quotes around string parameters