detects if user specified path is available or not