Checks for currently running application of the same type

Allows a test so that a single instance of the program only can be allowed to run.