Setting sling.home to target/sling so that log file get created under target folder

Also using PathUtil to get basedir