Add check to confirm path is a directory