Check if we can run the script directly