Catered for edge case where user leaves trailing forwardslash in path and appcmd borks.