bash - Prevent a process from running multiple times