Better configuration for environments.

Now uses application settings for script location.