fixed relative paths to work as npm module