Fix errors about creating directories

Needed slash to stop it complaining when creating directories