More robust checking for Play app directory