fix NPE while getting deployment folder