Fixed missing imports and resolved extraneous file being written when testing for compatible architectures.