Checks if folder ends with a '/' and checks if the folder exists