Fixes deploy and pull scripts