Bug fix - now it checks whether directories are absolute or not properly