Path errors using requireDirectory