Add validate_cmd parameter to file type

No tests yet. But feel free to leave feedback anyway :)