added folder choosing into script args

fixed prev song algorithm