Exit if the directory doesn't exist