Removed unnecessary path splitting