Fix to work on rails and node apps correctly