fixing the case if the command gets symlinked