Adds pathname require statement - Fix #693