[JBIDE-17919] Set directory on init so toggle between full and deployment works correctly