Fix error for running file and project: createShellCommand returns a promise