Applying fix from https://github.com/substack/watchify/issues/72#issuecomment-50747549