Moved the creation of the deploy directory as it was not working where it was.