Prevent bash script from being run twice