Add more friendly error when using script directly