Fix  ENOTDIR 

This is fixes ENOTDIR exception if no JS or css file present ...
This happens on modified version of nodeJS ...
If you for some reason don't want to merge, delete pull request :)