Application directory wasn't correctly initialised.