fix bug: using realative paths for directories