Fix before_prepare hook to work with Enyo's new directory structure

Fix for issue #1