Apparently express passes the full path, so only the layout path needs to be resolved
Fixed file loading using node.js path module