checks that the latest char of composer's path is a slash