Removed readlink dependency