make spring boot applied only when bin directory exists