fix fcntl conflicts from PR #176

fix mount command
fix monitor_command for non-list commands