Move everything into a linux subdirectory directory

Also a couple of fixes to scripts