fixed bug with directory when run from jar