check for file exists before running command

Do a check that file exists  before importing sql (which doesn't exist on all nodes, thus causing them to fail)