Fixed bug in testing for paths not starting with a slash