build: Fixed program path detection