Simplifies the processing by ensuring inout is an array (builds one if it's not). Removes the explicit concatentation of '.php' in favour of requiring callers to specify the full path properly.