Tries a few options for appdir

Getting a no method error, so this is an attempt to avoid it.