Fixed some path issues

* you can configure the start of directory via spring configuration